/**
 * @author gaopeng
 * @date 2019/12/14 2:00 下午
 */
public class Client {
    public static void main(String[] args) {
        Invoker invoker = new Invoker();
        Command command = new AddPageCommand(new PageReceiver());
        invoker.setCommand(command);
        invoker.action();
        command = new ChangeCodeCommand(new CodeReceiver());
        invoker.setCommand(command);
        invoker.action();
    }
}
